package com.trip.order.service;

import com.trip.common.dto.OrderDTO;
import com.trip.common.dto.LocationDto;
import com.trip.common.entity.TripOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.trip.common.vo.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hr
 * @since 2024-09-05
 */
public interface TripOrderService extends IService<TripOrder> {

    Result createOrder(OrderDTO orderDTO);

    Result updateOrder(OrderDTO orderDTO);

    Result receiverOrder(OrderDTO order);

    Result driverCancelOrder(OrderDTO order);

    boolean checkDriverReceiveOrder(Long driverId , Long orderId);
    //查询司机可接订单信息
    Result getDriverAcceptOrder(LocationDto locationDto);
}
